package common.model.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import common.model.enums.ProductUnlockTypeEnum;
import common.model.po.base.BasePo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author 米泽鹏
 * @since 2024-01-24 下午 07:09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("g_product_unlock")
@ApiModel(value = "GProductUnlock对象", description = "")
public class GProductUnlock extends BasePo<GProductUnlock> {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "商品id")
	private Long productId;

	@ApiModelProperty(value = "类型：	1-物品	2-建筑	3-文本")
	@TableField("type")
	private ProductUnlockTypeEnum type;

	@ApiModelProperty(value = "元素id")
	private Long elementId;

	private String content;

	@Override
	public Serializable pkVal() {
		return super.getId();
	}

}
